import Cookies from "js-cookie"

export const setToken = (token)=>{  
    Cookies.set('token',token,{expires:3})
  }
  
  export const getToken = ()=>{
    const token = Cookies.get('token')
    if(token) return token
    else return ''
  }